//
//  WBComposeTypeButton.swift
//  仿写微博
//
//  Created by Apple on 17/8/8.
//  Copyright © 2017年 tuimao. All rights reserved.
//

import UIKit

class WBComposeTypeButton: UIControl {
    
    @IBOutlet weak var imageView: UIImageView!
    @IBOutlet weak var textLabel: UILabel!
    
    var clsName:String?
    
    //创建nib视图
    class func ComposeTypeButton(imageName:String, title:String) ->WBComposeTypeButton {
        let nib = UINib(nibName: "WBComposeTypeButton", bundle: nil)
        let vc = nib.instantiate(withOwner: nil, options: nil)[0] as! WBComposeTypeButton
        vc.imageView.image = UIImage.init(named: imageName)
        vc.textLabel.text = title
        return vc
    }
    
}
